package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Objects;

/**
 * ClassName:resource
 * Package:com.example.demo.entity
 * Description:
 *
 * @date:2020/3/30 9:53
 * @author:
 */
@TableName(value = "sec_resource")
public class resource implements Serializable {
    private Integer id;
    private String resKey ;
    private String name;
    private String parentKey;
    private String resType;
    private String resUrl;
    private String resLevel;
    private String resIcon;
    private String resBtn;
    private String isHide;
    private String description;
    private String resStatus;

    public resource(Integer id, String resKey, String name, String parentKey, String resType, String resUrl, String resLevel, String resIcon, String resBtn, String isHide, String description, String resStatus) {
        this.id = id;
        this.resKey = resKey;
        this.name = name;
        this.parentKey = parentKey;
        this.resType = resType;
        this.resUrl = resUrl;
        this.resLevel = resLevel;
        this.resIcon = resIcon;
        this.resBtn = resBtn;
        this.isHide = isHide;
        this.description = description;
        this.resStatus = resStatus;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        resource resource = (resource) o;
        return resKey.equals(resource.resKey) &&
                name.equals(resource.name) &&
                parentKey.equals(resource.parentKey) &&
                resType.equals(resource.resType) &&
                resUrl.equals(resource.resUrl) &&
                resLevel.equals(resource.resLevel) &&
                resIcon.equals(resource.resIcon) &&
                resBtn.equals(resource.resBtn) &&
                isHide.equals(resource.isHide) &&
                description.equals(resource.description) &&
                resStatus.equals(resource.resStatus);
    }

    @Override
    public int hashCode() {
        return Objects.hash(resKey, name, parentKey, resType, resUrl, resLevel, resIcon, resBtn, isHide, description, resStatus);
    }

    @Override
    public String toString() {
        return "resource{" +
                "resKey='" + resKey + '\'' +
                ", name='" + name + '\'' +
                ", parentKey='" + parentKey + '\'' +
                ", resType='" + resType + '\'' +
                ", resUrl='" + resUrl + '\'' +
                ", resLevel='" + resLevel + '\'' +
                ", resIcon='" + resIcon + '\'' +
                ", resBtn='" + resBtn + '\'' +
                ", isHide='" + isHide + '\'' +
                ", description='" + description + '\'' +
                ", resStatus='" + resStatus + '\'' +
                '}';
    }

    public String getResKey() {
        return resKey;
    }

    public void setResKey(String resKey) {
        this.resKey = resKey;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getParentKey() {
        return parentKey;
    }

    public void setParentKey(String parentKey) {
        this.parentKey = parentKey;
    }

    public String getResType() {
        return resType;
    }

    public void setResType(String resType) {
        this.resType = resType;
    }

    public String getResUrl() {
        return resUrl;
    }

    public void setResUrl(String resUrl) {
        this.resUrl = resUrl;
    }

    public String getResLevel() {
        return resLevel;
    }

    public void setResLevel(String resLevel) {
        this.resLevel = resLevel;
    }

    public String getResIcon() {
        return resIcon;
    }

    public void setResIcon(String resIcon) {
        this.resIcon = resIcon;
    }

    public String getResBtn() {
        return resBtn;
    }

    public void setResBtn(String resBtn) {
        this.resBtn = resBtn;
    }

    public String getIsHide() {
        return isHide;
    }

    public void setIsHide(String isHide) {
        this.isHide = isHide;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getResStatus() {
        return resStatus;
    }

    public void setResStatus(String resStatus) {
        this.resStatus = resStatus;
    }

    public resource() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
}
